package com.sky.business.sys.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.jetbrains.annotations.NotNull;

/**
 * 摄像机rtsp流地址信息
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public  class CameraRtspInfo implements Comparable<CameraRtspInfo> {
    /**
     * 画面宽度
     */
    @Schema(description = "画面宽度")
    private int width;
    /**
     * 画面高度
     */
    @Schema(description = "画面高度")
    private int height;

    /**
     * 比特率上限
     */
    private int bitRateLimit;

    /**
     * rtsp流地址
     */
    @Schema(description = "流地址")
    private String rtspUrl;


    @Override
    public int compareTo(@NotNull CameraRtspInfo o) {
        return Integer.valueOf(width).compareTo(o.getWidth());
    }
}